/*
 * 版权所有(c)  1952110078@qq.com  2022 - 2022
 */

package com.ldc.module_main.adaapter;

import android.widget.ImageView;

import com.ldc.commonlibs.common.RecyclerAdapterBase;
import com.ldc.commonlibs.common.RecyclerViewHolder;
import com.ldc.commonlibs.utils.GlideUtil;
import com.ldc.module_main.R;
import com.ldc.module_main.model.BannerModel;

/**
 * @author liudc
 * @since 2022/7/20 22:53
 */
public class BannerListAdapter extends RecyclerAdapterBase<BannerModel> {
    public BannerListAdapter() {
        super(R.layout.main_layout_view_item_banner);
    }

    @Override
    protected void convertData(RecyclerViewHolder holder, BannerModel data, int position) {
        ImageView imageView = (ImageView) holder.getView(R.id.iv_logo);
        GlideUtil.setImageViewRadius(imageView, data.getImageUrl(), 10);
    }
}
